// Licensed to Elasticsearch B.V under one or more agreements.
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
// See the LICENSE file in the project root for more information.
//
// ███╗   ██╗ ██████╗ ████████╗██╗ ██████╗███████╗
// ████╗  ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝
// ██╔██╗ ██║██║   ██║   ██║   ██║██║     █████╗
// ██║╚██╗██║██║   ██║   ██║   ██║██║     ██╔══╝
// ██║ ╚████║╚██████╔╝   ██║   ██║╚██████╗███████╗
// ╚═╝  ╚═══╝ ╚═════╝    ╚═╝   ╚═╝ ╚═════╝╚══════╝
// ------------------------------------------------
//
// This file is automatically generated.
// Please do not edit these files manually.
//
// ------------------------------------------------

#nullable restore

using System;
using System.Linq;
using Elastic.Clients.Elasticsearch.Serialization;

namespace Elastic.Clients.Elasticsearch.Core.Search;

[System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Core.Search.Json.AggregationProfileDebugConverter))]
public sealed partial class AggregationProfileDebug
{
#if NET7_0_OR_GREATER
	public AggregationProfileDebug()
	{
	}
#endif
#if !NET7_0_OR_GREATER
	public AggregationProfileDebug()
	{
	}
#endif
	[System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
	internal AggregationProfileDebug(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel)
	{
		_ = sentinel;
	}

	public int? BruteForceUsed { get; set; }
	public int? BuiltBuckets { get; set; }
	public int? CharsFetched { get; set; }
	public int? CollectAnalyzedCount { get; set; }
	public int? CollectAnalyzedNs { get; set; }
	public string? CollectionStrategy { get; set; }
	public System.Collections.Generic.IReadOnlyCollection<string>? DeferredAggregators { get; set; }
	public string? Delegate { get; set; }
	public Elastic.Clients.Elasticsearch.Core.Search.AggregationProfileDebug? DelegateDebug { get; set; }
	public int? DynamicPruningAttempted { get; set; }
	public int? DynamicPruningUsed { get; set; }
	public int? EmptyCollectorsUsed { get; set; }
	public int? ExtractCount { get; set; }
	public int? ExtractNs { get; set; }
	public System.Collections.Generic.IReadOnlyCollection<Elastic.Clients.Elasticsearch.Core.Search.AggregationProfileDelegateDebugFilter>? Filters { get; set; }
	public bool? HasFilter { get; set; }
	public string? MapReducer { get; set; }
	public int? NumericCollectorsUsed { get; set; }
	public int? OrdinalsCollectorsOverheadTooHigh { get; set; }
	public int? OrdinalsCollectorsUsed { get; set; }
	public string? ResultStrategy { get; set; }
	public int? SegmentsCollected { get; set; }
	public int? SegmentsCounted { get; set; }
	public int? SegmentsWithDeletedDocs { get; set; }
	public int? SegmentsWithDocCountField { get; set; }
	public int? SegmentsWithMultiValuedOrds { get; set; }
	public int? SegmentsWithSingleValuedOrds { get; set; }
	public int? SkippedDueToNoData { get; set; }
	public int? StringHashingCollectorsUsed { get; set; }
	public int? SurvivingBuckets { get; set; }
	public int? TotalBuckets { get; set; }
	public int? ValuesFetched { get; set; }
}